package com.school.mapper;

import com.school.entity.Carousel;
import com.school.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper {
    int getTotalCarouselCount(PageQueryUtil pageQueryUtil);
    List<Carousel> findCarouselList(PageQueryUtil pageQueryUtil);
    int insertSelective(Carousel carousel);

    Carousel selectByPrimaryKey(Integer carouselId);

    int updateByPrimaryKeySelective(Carousel carousel);

    int deleteBatch(Integer[] carouselIds);


    List<Carousel> findCarouselsByNumber(@Param("number") int number);
}
